﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Model.MetadataTypes;
namespace Model.Entities
{
    /// <summary>
    /// 实体类 无线电监测设施基本表的子表, 此类请勿动，以方便表字段更改时重新生成覆盖
    /// </summary>
    [Serializable]
    [MetadataType(typeof(RMBT_FACILITY_CHILDTABLE_Metadata))]
    public partial class RMBT_FACILITY_CHILDTABLE
    {
        /// <summary>
        /// 创建<see cref="RMBT_FACILITY_CHILDTABLE"/>的实例
        /// </summary>
        public RMBT_FACILITY_CHILDTABLE()
        {
        }
        /// <summary>
        /// 主键，外键：RMBT_FACILITY(MFID)
        /// </summary>
        public virtual string MFID { get; set; }

        		
        /// <summary>
        /// 馈线损耗标准长度(单位：米)
        /// </summary>
        public virtual decimal FEEDERLOSSSTANDARDLENGTH { get; set; }

    		
        /// <summary>
        /// 馈线损耗实际长度(单位：米)
        /// </summary>
        public virtual decimal FEEDERLOSSACTUALLENGTH { get; set; }

    		
        public override bool Equals(object obj)
        {
            RMBT_FACILITY_CHILDTABLE model = obj as RMBT_FACILITY_CHILDTABLE;
            return model != null && (ReferenceEquals(MFID,null) ? ReferenceEquals(model.MFID, null) : MFID.Equals(model.MFID));
        }
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();
            hash = (hash * 397) ^ (ReferenceEquals(MFID, null) ? 0 : MFID.GetHashCode());
            return hash;
        }
    }
}
